import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'  //导入element-plus的css
import router from '@/router'; //导入路由模块
import {createPinia} from 'pinia'
import {createPersistedState} from 'pinia-persistedstate-plugin'
import App from './App.vue'
//倒入element中文语言包
import locale from 'element-plus/dist/locale/zh-cn.js'

const persist = createPersistedState()
const app = createApp(App);
const pinia = createPinia();
pinia.use(persist)
app.use(pinia)
app.use(router);
app.use(ElementPlus,{locale});
app.mount('#app')

